package com.seanchenxi.gwt.wordpress.xmlrpc.service.model.impl;

import java.util.HashMap;

import com.seanchenxi.gwt.wordpress.domain.model.CommentFinder;
import com.seanchenxi.gwt.wordpress.domain.model.CommentStatus;
import com.seanchenxi.gwt.xmlrpc.client.model.impl.BaseModelImpl;

public class CommentFinderImpl extends BaseModelImpl implements CommentFinder {

	/**
	 * Generated id
	 */
	private static final long serialVersionUID = -5439992787096427007L;

	public CommentFinderImpl() {
		super();
		setCommentStatus(CommentStatus.APPROVE);
		setNumber(10);
		setOffset(0);
	}

	public CommentFinderImpl(HashMap<String, Object> properties) {
		super(properties);
	}

	@Override
	public int getPostId() {
		return get("post_id");
	}

	@Override
	public void setPostId(int post_id) {
		set("post_id", post_id);

	}

	@Override
	public CommentStatus getCommentStatus() {
		return get("status");
	}

	@Override
	public void setCommentStatus(CommentStatus status) {
		set("status", status);
	}

	@Override
	public int getOffset() {
		return get("offset");
	}

	@Override
	public void setOffset(int offset) {
		set("offset", offset);
	}

	@Override
	public int getNumber() {
		return get("number");
	}

	@Override
	public void setNumber(int number) {
		set("number", number);
	}

}
